{% set data = notification.content %}

{% if data.userId|default(false) %}
  {% set who = data.userName %}
{% endif %}

{% if data.type == 'at' %}
  {% set thread = dict_text('threadType', data.threadType|default('discussion')) ~ data.title %}
  {{ 'notification.course-thread.at'|trans({'%who%':who, '%thread%':thread}) }}

{% elseif data.type == 'reply' %}
  {% set thread = dict_text('threadType', data.threadType|default('discussion')) ~ data.title %}
  {{ 'notification.course-thread.reply'|trans({'%who%':who, '%thread%':thread}) }}

{% elseif data.type == 'replayat' %}
  {% set thread = dict_text('threadType', data.threadType|default('discussion')) ~ data.title %}
  {{ 'notification.course-thread.replayat'|trans({'%who%':who, '%thread%':thread}) }}

{% elseif data.type == 'modify-thread' %}
  {% set thread = dict_text('threadType', data.threadType|default('discussion')) ~ data.title %}
  {{ 'notification.course-thread.modify-thread'|trans({'%thread%':thread}) }}

{% elseif data.type == 'modify-post' %}
  {% set thread = dict_text('threadType', data.threadType|default('discussion')) ~ data.title %}
  {{ 'notification.course-thread.modify-post'|trans({'%thread%':thread}) }}

{% elseif data.type == 'delete' %}
  {% set thread = dict_text('threadType', data.threadType|default('discussion')) ~ data.title %}
  {{ 'notification.course-thread.delete'|trans({'%thread%':thread}) }}

{% elseif data.type == 'delete-post' %}
  {% set thread = dict_text('threadType', data.threadType|default('discussion')) ~ data.title %}
  {{ 'notification.course-thread.delete-post'|trans({'%thread%':thread}) }}

{% elseif data.type == 'modify' %}
  {% set thread = dict_text('threadType', data.threadType|default('discussion')) ~ data.title %}
  {{ 'notification.course-thread.modify'|trans({'%thread%':thread}) }}

{% elseif data.type == 'top' %}
  {% set thread = dict_text('threadType', data.threadType|default('discussion')) ~ data.title %}
  {{ 'notification.course-thread.top'|trans({'%thread%':thread}) }}

{% elseif data.type == 'untop' %}
  {% set thread = dict_text('threadType', data.threadType|default('discussion')) ~ data.title %}
  {{ 'notification.course-thread.untop'|trans({'%thread%':thread}) }}

{% elseif data.type == 'elite' %}
  {% set thread = dict_text('threadType', data.threadType|default('discussion')) ~ data.title %}
  {{ 'notification.course-thread.elite'|trans({'%thread%':thread}) }}

{% elseif data.type == 'unelite' %}
  {% set thread = dict_text('threadType', data.threadType|default('discussion')) ~ data.title %}
  {{ 'notification.course-thread.unelite'|trans({'%thread%':thread}) }}

{% endif %}


